package com.github.baichuan.application.scaffold.rest.dto.realm;

import com.github.baichuan.mapping.Mapping;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;

@Schema(title = "应用组表单")
@Getter
public class RealmForm {
    @Schema(title = "名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "名称不能为空")
    @Size(max = 8, message = "名称最长8个字符")
    @Mapping
    private String name;
}
